<?php

namespace dengje\workerman\process\queue\task;
use app\common\model\user\UserModel;
use dengje\workerman\process\timing\task\Test as A;
use app\common\service\ConfigService;
class Test
{
	public function fire($data)
	{
		
		\think\facade\Db::connect('mysql')->query('select 1');
		var_dump('99任务已执行'.date('Y-m-d H:i:s'));
		var_dump($data);
		// ConfigService::get('audit', 'type', 'null');
		// $res = UserModel::limit(3)->select();
		// UserModel::where('id', 2)->update(['name' => '123sdfsd世界的理解']);
		// var_dump('任务已执行'.json_encode($res));
		// for
		//    (new \dengje\workerman\process\timing\Client())->setInterval(5)->run(A::class);
	}
}